package dailearn.consumer.controller;

import dailearn.consumer.entity.User;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import java.util.ArrayList;
import java.util.List;

/**
 *
 * @author daify
 * @date 2019-07-09 16:04
 **/
@RestController
@Slf4j
public class UserController {
    
    @RequestMapping(value = "getUser",method = RequestMethod.GET)
    public List<User> findAllGood() {
        log.info("______getUser_________");
        List<User> userList = new ArrayList <>();
        userList.add(new User("user1",10,13411111111L));
        userList.add(new User("user2",20,13422222222L));
        userList.add(new User("user3",30,13433333333L));
        return userList;
    } 
    
}
